package com.joysuch.wwyt.risk.bean;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalTime;

/**
 * @Author ZhangDong
 * @Date 2020/7/17 12:07
 */
@Data
public class RiskEvalPlanRemindBean {

    private Long id;
    @Range(min = 0, max = 1)
    @ApiModelProperty("是否到期提醒 0 否 ; 1 是")
    @NotNull(message = "是否到期提醒不能为空")
    private Integer expireRemindOrNot;
    @ApiModelProperty("到期提醒类型")
    private String remindType;
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    @ApiModelProperty("提醒时间")
    @DateTimeFormat(pattern = "HH:mm")
    private LocalTime remindTime;
}
